package com.example.jobback.mapper;

import com.example.jobback.po.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName: CollectMapper
 * @Description:收藏岗位Mapper
 * @Author: lhb
 * @Date: 2025/7/16
 */
@Mapper
public interface CollectMapper {

    void collectPosition(Collect collect);

    int update(Collect collect);

    List<Long> getCollectJobIdsBySeekerUserId(@Param("seekerUserId") Long userId);

    Boolean judgeCollect(@Param("seekerUserId") Long userId, @Param("positionId") Long positionId);

    void deleteByPositionIds(@Param("positionIdList") List<Long> positionIdList);
}
